package com.leiduoduo.oms.dao;

import com.leiduoduo.oms.pojo.Dinner;
import com.leiduoduo.oms.pojo.Restaurant;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RestaurantDao {
    boolean addRestaurant(Restaurant restaurant);
    boolean delRestaurant(Restaurant restaurant);
    boolean upRestaurant(Restaurant restaurant);
    Restaurant getRestaurantByCode(String code);
    Restaurant getRestaurantById(int id);
    List<Restaurant> getRestaurantList();
}
